﻿<?php 
/*
header("Pragma: public");
header("Expires: 0");
header("Accept-Ranges: bytes");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/vnd.ms-word");
header('Content-Disposition: attachment; filename=privilegesstudents.doc');
header("Content-Transfer-Encoding: binary");
*/
?>
<?php
 // debug ($tmp_students);
  //.$privileges[$privilege_id])
?>
<h2><?php __('Список льготников по льготе '); 
		echo $privileges[$privilege_id];

?></h2>
<table width="100%" border="1" cellspacing="2" cellpadding="2">
  <tr>
    <td><strong>Фак-т</strong></td>
    <td><strong>Спец-ть</strong></td>
    <td><strong>Курс</strong></td>
    <td><strong>Группа</strong></td>
    <td><strong>Форма обуч</strong></td>
    <td><strong>Тип. обуч</strong></td>    
    <td><strong>Фамилия</strong></td>
    <td><strong>Имя</strong></td>
    <td><strong>Отчество</strong></td>
  </tr>
  <?php 
  $i = 0;
  foreach ($tmp_students as $tmp_student):
  
  ?>
  <tr>
    <td><?php 
    echo $student_learning_info[$i][0]['facultet'];
    ?>
    </td>
    <td><?php 
     echo $student_learning_info[$i][1]['profession'];
    ?>
    </td>
    <td><?php 
     echo $student_learning_info[$i][2]['course'];
    ?>
    </td>
    <td><?php 
     echo $student_learning_info[$i][3]['group'];
    ?>
    </td>
    <td><?php echo $learningforms[$student_learning_info[0][4]['lform']];
    ?>
    </td>
    <td><?php echo $learningtypes[$student_learning_info[0][5]['ltype']];
    ?>
    </td>    
    <td><?php 
    echo $tmp_student['Studentinfo']['lastname'];
    ?>
    </td>
    <td><?php  echo $tmp_student['Studentinfo']['firstname'];
    ?>
    </td>
    <td><?php  echo $tmp_student['Studentinfo']['surname'];
    ?>
    </td>

  </tr>
  <?php
  $i++;
   endforeach ;?>
</table>